'use strict';

const path=require('path');

module.exports = (appInfo) => {
  const config = (exports = {});



  config.sequelize = {
    dialect: 'mysql',
    host: 'localhost',
    port: 3306,
    database: 'donghuang',
    username: 'root',
    password: '',
    exclude: 'index.js',
    // delegate: 'myModel',
    // baseDir: 'my_model',
    define: {
      freezeTableName: true,
      underscored: true,
    },
  };

  config.passportJwt = {
    secret: '@@RTY2021##',
    expiresIn: '3600d'
    //ignore: '/', // optional
  }
  return {
    ...config,
  };
};
